package com.hxs.hxsserver.enums;

/**
 * 用户藏品质押状态枚举
 */
public enum UserPoolStakeStatusEnums {
    STAKING(1,"质押中"),
    DONE(2,"已完成"),
    CANCELED(3,"已取消"),
    ;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String desc;

    UserPoolStakeStatusEnums(Integer status, String desc){
        this.status = status;
        this.desc = desc;
    }

    public static UserPoolStakeStatusEnums getByStatus(Integer status){
        switch (status){
            case 1: return STAKING;
            case 2: return DONE;
            case 3: return CANCELED;
            default: return null;
        }
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
}
